home *** CD-ROM | disk | FTP | other *** search
/ Gekkan Dennou Club 145 / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin / tools / sharp / sxwork2.lzh / サンプル基礎編 / 数値調整ボタン / ADJUST.H < prev    next >
Text File  |  1994-03-10  |  2KB  |  55 lines

  1. /******************************************************************************
  2.  *    adjust.h:    adjust.c用ヘッダファイル
  3.  ******************************************************************************
  4.  *    Workroom SX-68K Sample Program Copyright 1994 SHARP
  5.  *
  6.  *    定数定義
  7.  */
  8. /* ウィンドウタイトル */
  9. #define WINTITLE    ((_LASCII) "\x0e数値調整ボタン")
  10.  
  11. /* ウィンドウサイズ */
  12. #define WIN_H        240        /* ウィンドウの幅    */
  13. #define WIN_V        80        /* ウィンドウの高さ    */
  14.  
  15. /* 数値調整ボタンの表示位置 */
  16. #define ADJ_X        81        /* X座標        */
  17. #define ADJ_Y        25        /* Y座標        */
  18.  
  19. /* 数値調整ボタンのリピート時間(1/100秒単位)*/
  20. #define ADJFIRST    40        /* リピート開始時間    */
  21. #define ADJNEXT        12        /* リピート間隔        */
  22.  
  23. /* イベントマスク */
  24. #define EVENTMASK    (EM_MSLDOWN | EM_UPDATE | EM_ACTIVATE | EM_SYSTEM1 | EM_SYSTEM2)
  25. /*
  26.  *    構造体宣言
  27.  */
  28. typedef struct ComVal {            /* 共通変数        */
  29.     Window *windowPtr;        /* ウィンドウポインタ    */
  30.     BOOLEAN activeFlag;        /* アクティブフラグ    */
  31.     TsEvent event;            /* イベントレコード    */
  32.     int eventMask;            /* イベントマスク    */
  33.     int errorCode;            /* エラーコード        */
  34.     BOOLEAN endFlag;        /* 終了フラグ        */
  35.     /* 数値調整ボタンのコントロールハンドル */
  36.     Control **adjBtnHdl;
  37. } ComVal;
  38. /*
  39.  *    関数プロトタイプ
  40.  */
  41. /* adjust.c */
  42. BOOLEAN init(ComVal *);
  43. BOOLEAN createWindow(ComVal *);
  44. BOOLEAN createControl(ComVal *);    /* 数値調整ボタンの作成        */
  45. void msLDownEvent(ComVal *);
  46. void checkControl(ComVal *);
  47. void keyDownEvent(ComVal *);
  48. void updateEvent(ComVal *);
  49. void drawGraph(ComVal *);
  50. void activateEvent(ComVal *);
  51. void systemEvent(ComVal *);
  52. void showErrDialog(ComVal *);
  53. void endProc(int, ComVal *);
  54. void repeatAdjBtn(ComVal *, int);    /* 数値調整ボタンのリピート処理    */
  55.